﻿namespace EyeOpen.Security.Domain
{
	using System.Security.Cryptography;
	using System.Text;

	using EyeOpen.Domain;

	public class User
		: Entity
	{
		public string Email { get; set; }

		public byte[] Password { get; set; }

		public static byte[] CreatePassword(string password)
		{
			return
				MD5
					.Create()
					.ComputeHash(Encoding.ASCII.GetBytes(password));
		}
	}
}